package com.gopay.checkorder.service.task;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import junit.framework.TestCase;

public class CheckOrderTaskForSms extends TestCase {

	 private Task checkOrderTask1;
	
	@Override
	protected void setUp() throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
		  checkOrderTask1 = (Task) context.getBean("checkOrderTask-1");
	}

	/**
     * 测试：对单Task
     */
    public void testDoTask() {
        checkOrderTask1.doTask();
    }
}
